from celery_task.celery import app
from celery.result import AsyncResult


id=("fd56d560-c5d4-45ff-9ccc-87675ed76b1f")
if __name__ == '__main__':
    result = AsyncResult(id=id, app=app)
    if result.successful():
        result = result.get()
        print (result)
    elif result.failed():
        print ("failed")
    elif result.state == 'PENDING':
        print ("no started")
    elif result.state == 'RETRY':
        print ("retry")
    elif result.state == 'STARTED':
        print ("start")
